#include "weather_icon.h"
#include <QMap>

static QMap<QString, QString> nameToPath = {
    {"大雪", "heavy_snow.png"},
    {"大雨", "heavy_rain.png"},
    {"中雨", "mid_rain.png"},
    {"小雨", "little_rain.png"},
    {"晴", "sunny.png"},
    {"阴", "grey.png"},
    {"多云", "cloudy.png"},
    {"雾", "fog.png"},
    {"霾", "smog.png"},
    {"冻雨", "frozen_rain.png"},
    {"沙尘暴", "sandstorm.png"},
    {"中雪", "mid_snow.png"},
    {"小雪", "little_snow.png"},
    {"雨夹雪", "rain_snow.png"},
    {"雷阵雨", "thunder_rain.png"}
};

QString getIconPath(QString weather) {
    return nameToPath[weather];
}
